/*
 *  Copyright 2008 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */

/*
 *  I2C header file
 *
 */

#ifndef I2C_
#define I2C_

#include "C6747.h"


/* ------------------------------------------------------------------------ *
 *  Prototypes                                                              *
 * ------------------------------------------------------------------------ */
extern Int16 C6747_I2C_init ( );
extern Int16 C6747_I2C_close( );
extern Int16 C6747_I2C_write( Uint16 rom_addr, Uint8 *data, Uint16 len );
extern Int16 C6747_I2C_writeconst( Uint16 i2c_addr, const Uint8 *data, Uint16 len );
extern Int16 C6747_I2C_read ( Uint16 rom_addr, Uint8 *data, Uint16 len );
extern Int16 C6747_EEPROM_write( Uint32 src, Uint32 dst, Uint32 length );
#define EEPROM_I2C_ADDR 0x50
#endif
